<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<div>
  {{info}}<br>
  <input type="text" v-model="info">

  <h1>注册页面</h1>
<!--  用户名: <input type="text" placeholder="请输入用户名" v-model="username"><br>-->
<!--  密码: <input type="password" placeholder="请输入密码" v-model="password">-->
  用户名: <input type="text" placeholder="请输入用户名" v-model="user.username"><br>
  密码: <input type="password" placeholder="请输入密码" v-model="user.password">
</div>


<script src="js/vue.min.js"></script>
<script>
  let v = new Vue({
    el: "body>div",
    data: {
      info: '双向绑定',
      // username:"",
      // password:""
      user:{username:"",password:""}
    }
  })
</script>
</body>

</html>